<?php
/*
*	created by cbq in 2017.02.08
*	站点相关模型
*/
defined('BASEPATH') OR exit('No direct script access allowed');
class Sites_m extends MY_Model {
    public function __construct()
    {
        parent::__construct();
        $this->table='sites';
    }
    public function sel($where,$field='*'){
    	$this->com_where($where);
    	$this->db->select($field);
        $query=$this->db->get($this->table);
     	$data=$query->row_array();
        return $data;
    }
 }